package com.ailargemodel.common;

/**
 * AI 大模型项目的 错误代码
 * @author 喜洋洋
 */
public enum ErrorCode {
    SUCCESS(20000,"成功",""),
    SELECT_NOT(40003, "查询不到这个人存在",""),
    PARAMS_ERROR(40000, "请求参数错误",""),
    NOT_LOGIN_ERROR(40100, "未登录",""),
    VARIABLE_EMPTY_ERROR(40001 , "参数为空错误",""),
    DATABASE_MATCH_EMPTY_ERROR(40002,"数据库不存在此学号用户",""),
    NO_LOGIN_ERROR(40101,"未登录",""),
    TOO_MANY_REQUEST(42900, "请求过于频繁",""),
    NO_AUTH_(40100,"用户无权限",""),
    CONVERSATION_NUM_LITTLE(40200,"当前会话的问题数为0，没必要开新会话",""),
    SYSTEM_ERROR(50000, "系统的内部异常",""),
    MATCH_NULL_ERROR(40002 , "参数和数据库匹配错误" , "");


    private final int code;
    private final String message;
    private final String description;

    ErrorCode(int code , String msg , String description){
        this.code = code ;
        this.message = msg;
        this.description = description;
    }



    public int getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }

    public String getDescription() {
        return description;
    }
}
